<?php
$nav_page = 3;
include_once 'common/personal_top.php';
include_once '../Class/DB.php';
$db=new DB();
$currentUser=$db->get_uid_info($_SESSION["User"]["uid"]);
?>

<div id="marks" class="block_mode">
	<div class="block_context">
		<h1>Your Current Level：<span><?php echo $currentUser[0]["level"]?></span></h1>
		<h2>Level up needed：<?php echo (($currentUser[0]["level"]+1)*100-$currentUser[0]["exp"]);?> points</h2>
		
		<div id="rule">
			<b>Rule：</b>
			<p>Whenever you have bought something, you can gain some points from each product.When your points reach a specific number, your level will increase.</p>
			<p></p>
			<p></p>
			<p></p>
			<b>Different levels share different discount：</b>
			<table>
				<?php
				for($i =1;$i<=10;$i++){ 
				?>
				<tr>
					<th>
						<p>Level <?php echo $i;?> ：</p>
					</th>
					<td>
						<p>Discount:<?php echo $i;?>%</p>
					</td>
				</tr>
				<?php 
				}
				?>
			</table>
		</div>
	</div>
</div>
<?php
include_once 'common/personal_tail.php';
?>